home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Workbench Design
/
WB Collection.iso
/
workbench werkzeuge
/
bootpicturetools
/
picboot
/
picboot.guide
(
.txt
)
< prev
next >
Wrap
Amigaguide Document
|
1996-04-07
|
36KB
|
730 lines
@database PicBoot.guide
@Master PicBoot.texinfo
@Width 72
This is the AmigaGuide
file PicBoot.guide, produced by Makeinfo-1.55 from
the input file PicBoot.texinfo.
@Node Main "PicBoot.guide"
This file describes @{b}PicBoot@{ub}, version 2.6, a program that shows an
IFF ILBM or GIF picture during boot.
@{" Introduction " Link "Introduction"} What is @{b}PicBoot@{ub}?
@{" System requirements " Link "System requirements"} What you need to run the program.
@{" Legal information " Link "Legal information"} Legal information and disclaimer.
@{" Usage " Link "Usage"} Basic usage.
@{" Known problems " Link "Known problems"} Problems and bugs.
@{" StopPicBoot " Link "StopPicBoot"} What is @{b}StopPicBoot@{ub}?
@{" GetModeID " Link "GetModeID"} What is @{b}GetModeID@{ub}?
@{" UnpackILBM " Link "UnpackILBM"} What is @{b}UnpackILBM@{ub}?
@{" Author contact " Link "Author contact"} How to reach me.
@{" Version history " Link "Version history"} Version history.
@EndNode
@Node "Introduction" "PicBoot.guide/Introduction"
@Next "System requirements"
@Prev "Main"
@Toc "Main"
Introduction
************
Have you removed all output in your 2.0+ startup, and only see a
black screen during boot? Wouldn't it be nice to have a picture
instead? A picture that disappeared when the @{b}Workbench@{ub} screen opened?
If so, @{b}PicBoot@{ub} is certainly a program for you. What it will do is to
read any IFF file containing an ILBM - or GIF - picture, and show it.
As soon as the @{b}Workbench@{ub} screen appears (or you press any
mouse-button), the picture will go away.
Features:
@{b}*@{ub} Fast picture unpacking, using highly optimized assembler. The
entire picture is read into memory and then unpacked. This applies
both to the IFF and the GIF unpacker.
@{b}*@{ub} Optional auto-detaching; the picture is loaded as fast as
possible, with minimal memory fragmentation.
@{b}*@{ub} A picture can be shown a user-specified time after the @{b}Workbench@{ub}
screen opens (see @{"DELAY" Link "DELAY"} and @{"PATCH" Link "PATCH"}).
@{b}*@{ub} Extremely flexible argument parser.
@{b}*@{ub} Random select among any number of pictures, in several different
ways.
@{b}*@{ub} Force a certain display mode for a picture, even if saved with
another (can be selected on a picture by picture basis).
@{b}*@{ub} The comment field of a file may be used to specify options.
@{b}*@{ub} Optional screen centering (horisontally).
@{b}*@{ub} Optional screen fading (in various forms). Uses the increased
palette range in AA (24 bits).
@{b}*@{ub} Should work with most "Intuition emulators" for gfx-cards.
@EndNode
@Node "System requirements" "PicBoot.guide/System requirements"
@Next "Legal information"
@Prev "Introduction"
@Toc "Main"
System requirements
*******************
Apart from OS 2.04+, @{b}PicBoot@{ub} doesn't require any special libraries.
The only non-ROM library required is @{b}iffparse.library@{ub} (which normally
resides in @{b}Libs:@{ub}).
@{b}PicBoot@{ub} have full support for OS 3.0+ and AA graphics. It should
even work with gfx-cards that have an "Intuition emulator".
@EndNode
@Node "Legal information" "PicBoot.guide/Legal information"
@Next "Usage"
@Prev "System requirements"
@Toc "Main"
Legal information
*****************
This program is freeware. You may copy and use this program freely,
as long as the following conditions are met:
@{b}*@{ub} All files are copied in an unmodified state. If additional
information is needed, place it in a separate file. Preferably
redistribute in the original archive form (@{b}*.Lha@{ub}).
Exception: So called BBS ads may @{i}not@{ui} be added!
@{b}*@{ub} The copying is done on a non-commercial and non-profit basis
only. A copy fee to cover media costs, postage etc. may be
charged. This fee may not exceed the fee to obtain an AmigaLibDisk
from Fred Fish.
@{b}*@{ub} The copier/spreader is not claiming the Copyright
of this
program.
Any exceptions from these restrictions requires written permission
from the author, Magnus Holmgren (see @{"Author contact" Link "Author contact"}).
Disclaimer
==========
Magnus Holmgren neither assume nor accept any responsibility for the
use or misuse of these programs. He also will not be held liable for
damages or any compensation due to loss of profit or any other damages
arising out of the use, or inability to use these programs.
Magnus Holmgren will not be liable for any damage arising from the
failure of these programs to perform as described, or any destruction
of other programs or data residing on a system attempting to run the
programs. While he know of no damaging errors, the user of these
programs uses it at his or her own risk.
@EndNode
@Node "Usage" "PicBoot.guide/Usage"
@Next "Known problems"
@Prev "Legal information"
@Toc "Main"
Usage
*****
To activate @{b}PicBoot@{ub}, add a line to your @{b}S:Startup-Sequence@{ub}, looking
something like this:
PicBoot Pics:Hi-res/Calvin01.Pic DETACH
Or, if you have a list of files in "Work:Text/PicList":
PicBoot Work:Text/PicList LIST DETACH
Or, if your drawer @{b}Pics:BootPics@{ub} contains some pictures:
PicBoot Pics:BootPics/#?.(Pic|Gif) DETACH
This line should be located near the beginning in the
@{b}S:Startup-Sequence@{ub} (no point in placing it near the @{b}LoadWB@{ub} command, is
it? :), but keep it after @{b}SetPatch@{ub}. @{b}PicBoot@{ub} will only output any text
if it fails, so don't re-direct its output. Note however that if you
place @{b}PicBoot@{ub} @{i}before@{ui} any additional monitors are installed, you'll be
stuck with the default.monitor for showing your picture. The DEFAULT
switch may be of help here.
Make sure no program makes any output in the CLI window, since then
the @{b}Workbench@{ub} screen will open with a boring CLI-window instead...
Options:
@{" FILES " Link "FILES"} Picture(s) to view, or name(s) of listfile(s).
@{" MODEID " Link "MODEID"} Use this display mode.
@{" LIST " Link "LIST"} The pictures to view are stored in a listfile.
@{" CENTER " Link "CENTER"} Should the screen be centered?
@{" DEFAULT " Link "DEFAULT"} Force the default monitor to be used?
@{" AUTOSCROLL " Link "AUTOSCROLL"} Enable autoscrolling?
@{" VIDEOOVERSCAN " Link "VIDEOOVERSCAN"} Use video overscan?
@{" RTG " Link "RTG"} Make @{b}PicBoot@{ub} work with gfx-cards.
@{" WRITEPIXELLINE " Link "WRITEPIXELLINE"} Might make the GIF reader faster.
@{" FADEIN " Link "FADEIN"} Fade speed when opening picture.
@{" FADEOUT " Link "FADEOUT"} Fade speed when closing picture.
@{" FADEWB " Link "FADEWB"} Fade speed of @{b}Workbench@{ub} screen after closing picture.
@{" DELAY " Link "DELAY"} Delay close after @{b}Workbench@{ub} screen open.
@{" PATCH " Link "PATCH"} Prevent @{b}Workbench@{ub} from open in front of @{b}PicBoot@{ub}.
@{" DETACH " Link "DETACH"} Detach from the @{b}Shell@{ub} when picture is loaded.
@{" ACTIVATEWB " Link "ACTIVATEWB"} Try to activate @{b}Workbench@{ub} window after close.
@EndNode
@Node "FILES" "PicBoot.guide/FILES"
@Next "MODEID"
@Toc "Usage"
FILES
=====
This is the only required argument. Here you specify the name of the
picture you want to view. You may enter several files here, in which
case @{b}PicBoot@{ub} will select one of them randomly, and show that one.
The name(s) can also be the name of an ASCII file containing a
filename list if you specified the @{"LIST" Link "LIST"} option.
The name(s) can also be the name of a drawer, in which case @{b}PicBoot@{ub}
will randomly select one of the files in this drawer. To use a pattern
during this scanning, simply enter the pattern like it had been the
name of a file in the drawer. Example:
Work:Pics/#?.gif
which would make @{b}PicBoot@{ub} select a file ending in @{b}.gif@{ub} in the drawer
@{b}Work:Pics@{ub}
If the comment field of the selected listfile or picture starts with
"*PicBoot*: " (case sensitive), then the rest of the comment is taken
to be arguments, like those in a @{"LIST" Link "LIST"} file.
You may freely mix picture and drawer names. Listfiles can only be
mixed with the other two ones if the comment contains the @{"LIST" Link "LIST"} switch.
In that case, the @{"LIST" Link "LIST"} argument should not be used on the command line
(or in a list file). Ofcourse you can random select among list files
with the "drawer scanner" if you like.. :)
@EndNode
@Node "MODEID" "PicBoot.guide/MODEID"
@Next "LIST"
@Prev "FILES"
@Toc "Usage"
MODEID
======
Short form: M
NOTE: This argument is mainly for the more "advanced" user.
This argument should be a decimal number specifying which screen
mode to use. It basically replaces the so called CAMG hunk in an ILBM
file (since it contains which screen mode to use). Thus, you must
select mode with care, or else the picture will look like trash
(nothing more serious can happen. I hope! :). When showing GIF files,
it will override the internal "best mode" routines (which aren't good
at all. But I haven't bothered to add code to make them better.. :).
To make it easier for you to find out which display mode id to use,
there is a small program called @{b}GetModeID@{ub} included, which uses the
@{b}ReqTools@{ub} or @{b}Asl@{ub} screenmode requester. Simply select the display mode
you want, and it will print out the number you should use here. See
@{"GetModeID" Link "GetModeID"}.
The mode id will be passed through the same validity checking as a
normal so called CAMG chunk, so @{b}PicBoot@{ub} should handle bad values
properly (although I haven't tested this much.. :).
@EndNode
@Node "LIST" "PicBoot.guide/LIST"
@Next "CENTER"
@Prev "MODEID"
@Toc "Usage"
Short form: L
If this switch is specified, @{b}PicBoot@{ub} will interpret the files in the
@{"FILES" Link "FILES"} argument as names of files containing a list of pictures (or
rather, argument lines). @{b}PicBoot@{ub} will then randomly select one of the
lines in the selected file, and process it almost like a normal argument
line. The only difference is that you can't use the @{"DETACH" Link "DETACH"}, @{"DELAY" Link "DELAY"},
@{"PATCH" Link "PATCH"} or @{"ACTIVATEWB" Link "ACTIVATEWB"} arguments. These arguments may not be specified in
a listfile (no point in doing it anyway).
The listfile is an ASCII (text) file with a simple layout. On the
first line you specify the number of argument lines in the file. This is
usually <number of lines in file>-2 (one line is occupied by the count,
and the other is the last linefeed). If this value is zero, then @{b}PicBoot@{ub}
will exit silently. The rest of the file is simply the argument lines to
choose from. An example:
4
Work:Pics/Comics/Calvin02.Pic MODEID 137220
Work:Pics/Comics/Calvin03.Gif
Work:Text/MoreCalvins.txt LIST CENTER ON
Work:Pics/Misc/#?.Gif
Note that any arguments specified from the CLI, or in any previous
listfile, will be taken as the new default value. In the listfile you
may alter this default. This does not include the LIST argument
(ofcourse). It is always turned off before parsing a line.
@{i}Warning: @{ui}Since you may enter a new listfile within a listfile, you
can be caught in an endless loop, constantly changing (maybe to the
same) listfile. No checking for this is done. Also, since there is no
CLI-window around, you have no chance to send @{b}PicBoot@{ub} any CTRL-C, if
@{b}PicBoot@{ub} should happen to listen to this. You have been warned! :)
@{i}Note: @{ui}A line in a listfile may not be more than 512 chars, or it
will be truncated when read. This shouldn't cause any problems I think..
@EndNode
@Node "CENTER" "PicBoot.guide/CENTER"
@Next "DEFAULT"
@Prev "LIST"
@Toc "Usage"
CENTER
======
Short form: C
Possible arguments: YES, ON, NO, OFF. Default is NO.
If this switch is on (argument is YES or ON), @{b}PicBoot@{ub} will center the
picture. This centering should work fine for most screen modes, but one
can never know.. :) If a screen promotor is active, then @{b}PicBoot@{ub} can get
it wrong (if the screen is opened in another mode than @{b}PicBoot@{ub} had
asked for).
@EndNode
@Node "DEFAULT" "PicBoot.guide/DEFAULT"
@Next "AUTOSCROLL"
@Prev "CENTER"
@Toc "Usage"
DEFAULT
=======
Short form: DEF
Possible arguments: YES, ON, NO, OFF. Default is NO.
If this switch is on (argument is YES or ON), @{b}PicBoot@{ub} will force the
picture to use the default.monitor, regardless of what was actually
stored in the picture (in the CAMG chunk). This is needed since very
early in the startup, default.monitor is the only monitor available
(e.g. multiscan.monitor is normally not available). In the future, I
might add more types of "forcing" (e.g. force a picture to PAL, NTSC or
whatever that might be useful).
This switch also acts on the @{"MODEID" Link "MODEID"} parameter, if specified.
@EndNode
@Node "AUTOSCROLL" "PicBoot.guide/AUTOSCROLL"
@Next "VIDEOOVERSCAN"
@Prev "DEFAULT"
@Toc "Usage"
AUTOSCROLL
==========
Short form: AS
Possible arguments: YES, ON, NO, OFF. Default is NO.
If this switch is on (argument is YES or ON), the OS 2.0+
autoscrolling of screens will be enabled.
@{i}Note:@{ui} During boot, this switch may make the actual display a bit
smaller than normally possible. There is nothing I can do about that...
:) You can, however, by ensuring that ENV:/IPREFS is properly set up
before @{b}PicBoot@{ub} is started. Or you could try the @{"VIDEOOVERSCAN" Link "VIDEOOVERSCAN"} switch.
@EndNode
@Node "VIDEOOVERSCAN" "PicBoot.guide/VIDEOOVERSCAN"
@Next "RTG"
@Prev "AUTOSCROLL"
@Toc "Usage"
VIDEOOVERSCAN
=============
Short form: VO
Possible arguments: YES, ON, NO, OFF. Default is NO.
If this switch is on (argument is YES or ON), the visible size of the
opened screen will be as large as the system can handle (assuming the
picture is large enough). Forces @{"AUTOSCROLL" Link "AUTOSCROLL"} to YES.
@EndNode
@Node "RTG" "PicBoot.guide/RTG"
@Next "WRITEPIXELLINE"
@Prev "VIDEOOVERSCAN"
@Toc "Usage"
Possible arguments: YES, ON, NO, OFF. Default is NO.
If this switch is on (argument in YES or ON), then @{b}PicBoot@{ub} will do
things a little differently, in an attempt to make it work with
gfx-cards (it have been tested with @{b}Picasso II@{ub}). The main difference is
that the screen is opened first, and the picture is decoded into this
screen (usually the picture is decoded first, and then the screen is
opened). Thus, you should only use this switch if the picture should
be shown with the gfx-card rather than the native @{b}Amiga@{ub} graphics. If
the gfx-card isn't used, the picture decoding may be a little slower.
Oh, btw, RTG stands for ReTargetable Graphics.
@{i}Note: @{ui}This feature requires OS 3.0 to work. If you don't have OS
3.0, then this argument is ignored.
@{i}Note: @{ui}You might need to specify a new @{"MODEID" Link "MODEID"} in order for @{b}PicBoot@{ub} to
use gfx-card screen.
@EndNode
@Node "WRITEPIXELLINE" "PicBoot.guide/WRITEPIXELLINE"
@Next "FADEIN"
@Prev "RTG"
@Toc "Usage"
WRITEPIXELLINE
==============
Short form: WPL
Possible arguments: YES, ON, NO, OFF. Default is NO.
If this switch is on (argument is YES or ON), then @{b}PicBoot@{ub} will use
a ROM function to convert/write the pixel data of a GIF picture.
Please note that this only have any effect if @{"RTG" Link "RTG"} have been used, and
the opened screen isn't a native Amiga screen.
In some cases, this can make @{b}PicBoot@{ub} faster, but in others, it can
make @{b}PicBoot@{ub} slower. There is an explanation for this, but it is a bit
technical. If you don't understand it (or you don't know enough about
your gfx-card), then I suggest you test it a little, finding out which
is fastest for different pictures.
Most gfx-cards have a "chunky" screen. That is, each pixel is stored
in one byte, which specifies which color (in a palette) that the pixel
have. This is different from the native @{b}Amiga@{ub} screen that have
bitplanes (where the color number is spread over several bytes). Since
a GIF picture stores the data in a chunky format, it would be a waste
of time to first convert the chunky data to bitplane form, and then
back again, if it should be displayed in a chunky screen.
In that case (a chunky screen), this switch can improve the speed
quite a lot, if a certain ROM function is patched by the Intuition
emulator. This patch should simply write the chunky data directly to
the right area of the screen.
However, not all gfx-card screens are chunky (at least the @{b}Picasso II@{ub}
stores 2-16 color screens as bitplanes), and perhaps the "Intuition
emulator" haven't patched the above mentioned function. In those cases,
then this switch will make things slower (since the original function
(which converts the chunky data to bitplane form) is quite a bit slower
than the routines in @{b}PicBoot@{ub}).
To test which is fastest, use something similar to the following
commads:
PicBoot Pics:Gifs/Island.gif RTG ON DETACH
PicBoot Pics:Gifs/Island.gif RTG ON DETACH WPL
and measure how long time both commands took to run (note that @{b}PicBoot@{ub}
detaches after the picture have been completely decoded), and only use
the WPL switch if it made @{b}PicBoot@{ub} faster.
@EndNode
@Node "FADEIN" "PicBoot.guide/FADEIN"
@Next "FADEOUT"
@Prev "WRITEPIXELLINE"
@Toc "Usage"
FADEIN
======
Short form: FI
Argument range: 1 to 4. Default is no value.
This value specifies the speed with which the picture should fade in
when the screen is opened. HAM pictures can't be faded.
@EndNode
@Node "FADEOUT" "PicBoot.guide/FADEOUT"
@Next "FADEWB"
@Prev "FADEIN"
@Toc "Usage"
FADEOUT
=======
Short form: FO
Argument range: 1 to 4. Default is no value.
This value specifies the speed with which the picture should fade
out when the screen is closed. HAM pictures can't be faded. Only useful
in combination with @{"DELAY" Link "DELAY"} (otherwise the picture will be in the back,
were the fade isn't visible! :).
@EndNode
@Node "FADEWB" "PicBoot.guide/FADEWB"
@Next "DELAY"
@Prev "FADEOUT"
@Toc "Usage"
FADEWB
======
Short form: FWB
Argument range: 1 to 4. Default is no value.
This value specifies the speed with which the @{b}Workbench@{ub} screen
should fade in when the picture screen have been closed. Intended to be
used in combination with the @{"FADEOUT" Link "FADEOUT"} (and @{"DELAY" Link "DELAY"}) argument(s).
@EndNode
@Node "DELAY" "PicBoot.guide/DELAY"
@Next "PATCH"
@Prev "FADEWB"
@Toc "Usage"
DELAY
=====
Short form: DL
A "problem" with @{b}PicBoot@{ub} is that the @{b}Workbench@{ub} screen first opens,
and then processes the @{b}Sys:WBStartup@{ub} drawer, which takes a little time.
This means that the picture @{b}PicBoot@{ub} shows disappear before the boot is
complete. To avoid this problem, the DELAY switch can be use to specify
the number of ticks (there are 50 ticks each second) @{b}PicBoot@{ub} will wait
after the @{b}Workbench@{ub} screen have opened.
However, this isn't perfect. When the @{b}Workbench@{ub} screen opens, the
@{b}PicBoot@{ub} screen must be brought back to the front again. This causes a
little "flicker". To avoid this, use the @{"PATCH" Link "PATCH"} parameter as well (this
feature requires OS 3.0+ to work).
There is a special delay value, 0, which causes @{b}PicBoot@{ub} to wait until
you either press any mouse button, or another program sends @{b}PicBoot@{ub} a
break signal (CTRL-C). The program @{"StopPicBoot" Link "StopPicBoot"} was written to do this.
@EndNode
@Node "PATCH" "PicBoot.guide/PATCH"
@Next "DETACH"
@Prev "DELAY"
@Toc "Usage"
PATCH
=====
Short form: P
If this switch is specified, @{b}PicBoot@{ub} will install a patch in
@{b}Intuition@{ub}, so that the @{b}Workbench@{ub} screen (or rather, any screen opened,
that explicitly doesn't say that the screen shouldn't open behind the
others) doesn't open in front of the @{b}PicBoot@{ub} screen. This removes the
"flicker" that normally occurs when using the @{"DELAY" Link "DELAY"} option. For this
option to be useful, the @{"DELAY" Link "DELAY"} parameter must be used as well.
@{i}Note 1: @{ui}This option only works on OS 3.0 or higher. This is due to
the OS (as far as I know), and there is nothing I can do about it (tech
note: @{b}Workbench@{ub} in OS 2.0x doesn't seem to call the open screen
function via the external library vector).
@{i}Note 2: @{ui}This kind of patching is not a recommended thing to do.
Programs should not do temporary patches like this. However, to avoid
the flickering, there is no alternative.. :)
@{i}Note 3: @{ui}In case some other program patches the same function after
@{b}PicBoot@{ub} have installed its patch - and you don't have a program like
e.g. @{b}SetMan@{ub} installed - then @{b}PicBoot@{ub} will leave a small memory
allocation behind (6 bytes), to avoid any problems.
@EndNode
@Node "DETACH" "PicBoot.guide/DETACH"
@Next "ACTIVATEWB"
@Prev "PATCH"
@Toc "Usage"
DETACH
======
Short form: D
If this switch is specified, @{b}PicBoot@{ub} will detach from its calling
CLI when the picture is fully loaded and displayed. If you specify this
option, you shouldn't "Run" @{b}PicBoot@{ub}. This option will reduce memory
fragmentation, and will ensure that the picture gets loaded quickly. I
don't think this feature will cause any problems, but I added the
switch just in case.
@EndNode
@Node "ACTIVATEWB" "PicBoot.guide/ACTIVATEWB"
@Prev "DETACH"
@Toc "Usage"
ACTIVATEWB
==========
Short form: AWB
If this argument is specified, then @{b}PicBoot@{ub} will try to activate a
@{b}Workbench@{ub} window after closing the picture. This might be useful if you
are using the @{"DELAY" Link "DELAY"} argument.
@EndNode
@Node "Known problems" "PicBoot.guide/Known problems"
@Next "StopPicBoot"
@Prev "Usage"
@Toc "Main"
Known problems
**************
I do not know of any real bugs in @{b}PicBoot@{ub}. However, certain parts of
the program may still contain bugs. E.g., pictures that have a mask
bitplane (mskHasMask) are supported, but since I only have one
(compressed) picture that have a mask, there might be a bug in that
code (can't test it properly). Please report any problems!
Currently there is no support for SHAM, PCHG and similar pictures.
I'm not sure if this could be implemented in a "clean" way (that would
work on future systems etc). These pictures aren't that common, and I
have an Amiga with AA-graphics, so... :) Color cycling is currently
ignored (I have no need for it).
Interlaced GIF pictures aren't supported, since I don't have any such
picture (well, actually I have ONE :). Besides, the decompression of
such pictures would be slower anyway.
@{b}PicBoot@{ub} doesn't remap GIF files in any way. Even if you have ECS,
GIF files can still be useful. This is because a GIF file can have from
2 to 256 colors (inclusive). Thus, if you have a program that can save
a 16-color picture as a 16-color GIF file, there will be no problem to
view it with @{b}PicBoot@{ub}.
@{b}PicBoot@{ub} doesn't make use of any "chunky to planar" hardware, if it
should happen to be installed (e.g. Aikiko). Anyone who have it, so I
can test it if I should decide implement it? :) It would be fairly
simple to do, since my own (rather fast, I might add :) chunky to
planar routines have very similar restrictions.
The "best mode" routine used in the GIF reader isn't good at all
(this includes the ROM function in OS 3.0+! :). I suggest you use the
@{"MODEID" Link "MODEID"} parameter instead (Correction: The ROM function isn't good when
there are several different monitors to choose from. If only one or two
(similar) monitors are available, then the result is usually rather
good).
Pictures with more than 8 bitplanes are currently not supported by
@{b}PicBoot@{ub}.
The centering for (some?) Super72 screens doesn't work. I suspect
this is an OS-"bug" (I know that @{b}PicBoot@{ub} calculates a reasonable
offset, which @{b}Intuition@{ub} seems to ignore).
@EndNode
@Node "StopPicBoot" "PicBoot.guide/StopPicBoot"
@Next "GetModeID"
@Prev "Known problems"
@Toc "Main"
StopPicBoot
***********
@{b}StopPicBoot@{ub} is a small program that simply tells @{b}PicBoot@{ub} to quit, if
it should happen to be in memory. This is useful in combination with
the @{"DELAY" Link "DELAY"} option. If this is set to 0, @{b}PicBoot@{ub} expects someone to tell
it when it is time to exit, and this is what @{b}StopPicBoot@{ub} does.
By having @{b}StopPicBoot@{ub} in @{b}Sys:WBStartup@{ub}, then @{b}PicBoot@{ub} will close its
screen when the boot process almost complete (the tooltype @{b}STARTPRI@{ub}
should be very low (-120 or so), so that @{b}StopPicBoot@{ub} is started as the
last program)
@EndNode
@Node "GetModeID" "PicBoot.guide/GetModeID"
@Next "UnpackILBM"
@Prev "StopPicBoot"
@Toc "Main"
GetModeID
*********
@{b}GetModeID@{ub} is a simle program that shows a @{b}Asl@{ub} or @{b}ReqTools@{ub} screenmode
requester, whichever is available. The program will then print out the
decimal identifier for the selected screenmode, suitable for use
together with the @{"MODEID" Link "MODEID"} parameter. This program can only be used from
a @{b}Shell@{ub}. Example usage:
PicBoot Island.Gif MODEID `GetModeID`
This will first show a screenmode requester (if you have one, that
is), and then show the GIF-picture in the selected screenmode.
@EndNode
@Node "UnpackILBM" "PicBoot.guide/UnpackILBM"
@Next "Author contact"
@Prev "GetModeID"
@Toc "Main"
UnpackILBM
**********
@{b}UnpackILBM@{ub} is another simple program (at least in theory... :). It
will take any IFF ILBM picture and unpack the so called BODY chunk in
it (this is the actual image data). This means that e.g. @{b}PicBoot@{ub} will
be able to display that image a little faster, at least if loading it
from some fast media. Or, if you use @{b}PPShow@{ub}/@{b}ShowIFF@{ub}, you could repack
the picture with @{b}PowerPacker@{ub}/@{b}Xpk@{ub}, to maximize the compression (as the
compression used in IFF ILBM isn't a very efficient one. But on the
other hand, it is rather fast and simple). But then @{b}PicBoot@{ub} won't be
able to load them.. :) Example usage:
UnpackILBM Island.Pic Island.Pic.NoComp
UnpackILBM Island.Pic
The first example till unpack the picture to a new one, while the
other will - via a temprary file - overwrite the original picture with
the uncompressed version.
@{i}Note:@{ui} I haven't tested this program @{i}that@{ui} much. I've converted a few
pictures, so it seems to work fine (at least when there aren't any
errors), but one can never now.. Please report any problems!
@{i}Note:@{ui} This program doesn't strip any information. All chunks will
remain. The picture data is only decompressed.
@EndNode
@Node "Author contact" "PicBoot.guide/Author contact"
@Next "Version history"
@Prev "UnpackILBM"
@Toc "Main"
Author contact
**************
@{b}PicBoot@{ub} was written by Magnus Holmgren. If you have any comments
etc, feel free to send me a note. You can reach me via internet on this
address:
cmh@augs.se
Fido-net messages should go to "Magnus Holmgren",
2:204/404.6@fidonet.org. Snail mail should reach me if you write the
following address on the envelope:
Magnus Holmgren
Kvarnbergsv
gen 4
S-444 47 Stenungsund
SWEDEN
@EndNode
@Node "Version history" "PicBoot.guide/Version history"
@Prev "Author contact"
@Toc "Main"
Version history
***************
@{" Version 1.00-1.03 " Link "Version 1.00-1.03"}
@{" Version 2.0 " Link "Version 2.0"}
@{" Version 2.1 " Link "Version 2.1"}
@{" Version 2.2 " Link "Version 2.2"}
@{" Version 2.3 " Link "Version 2.3"}
@{" Version 2.4 " Link "Version 2.4"}
@{" Version 2.5 " Link "Version 2.5"}
@{" Version 2.6 " Link "Version 2.6"}
@EndNode
@Node "Version 1.00-1.03" "PicBoot.guide/Version 1.00-1.03"
@Next "Version 2.0"
@Toc "Version history"
Version 1.00-1.03
=================
Ancient versions.
@EndNode
@Node "Version 2.0" "PicBoot.guide/Version 2.0"
@Next "Version 2.1"
@Prev "Version 1.00-1.03"
@Toc "Version history"
Version 2.0
===========
Release date: 29 Mar 94
@{b}*@{ub} BLACK argument removed. Not needed any more, since @{b}PicBoot@{ub} now
will first allocate the needed memory, decode the picture into
this memory, and then open the screen. This makes the screen
opening/closing a little faster too (practically instaneous on my
A4000/040).
@{b}*@{ub} Pictures (or rather, brushes) that were less than 16 pixels wide
wouldn't decompress properly... :)
@{b}*@{ub} Added support for the CMAPOK flag in the BitMapHeader.bmh_Flags
(previously called bmh_Pad) field (if this flag is set it
indicates that the color map contains 8 bits/color rather than 4
bits/color).
@{b}*@{ub} Major code cleanup. Made the program somewhat larger, but... :)
@{b}*@{ub} GIF support added. Should be a little faster than @{b}PPShow@{ub}.. :)
@{b}*@{ub} The @{"MODEID" Link "MODEID"} argument wasn't properly "passed on" to any following
listfile(s).
@{b}*@{ub} Rewrote @{b}rtGetModeID@{ub} into @{b}GetModeID@{ub}, that first checks for @{b}Asl@{ub},
and then tries with @{b}ReqTools@{ub} before giving up. This new version is
in C, compiled with DICE, without any startup code, and is fully
residentable. :) See @{"GetModeID" Link "GetModeID"}.
@{b}*@{ub} Included @{b}UnpackILBM@{ub}, that takes any IFF ILBM file (with a BODY
chunk, i.e. a normal picture) and writes it with an uncompressed
BODY instead. Written upon user request. See @{"UnpackILBM" Link "UnpackILBM"}.
@EndNode
@Node "Version 2.1" "PicBoot.guide/Version 2.1"
@Next "Version 2.2"
@Prev "Version 2.0"
@Toc "Version history"
Version 2.1
===========
Release date: 14 May 94
@{b}*@{ub} The @{"DEFAULT" Link "DEFAULT"} parameter didn't do anything. Fixed
@{b}*@{ub} @{b}UpackILBM@{ub} and @{b}GetModeID@{ub} updated a little. Version string added,
recompiled with @{b}DICE@{ub} 3.0 and some other minor changes.
@EndNode
@Node "Version 2.2" "PicBoot.guide/Version 2.2"
@Next "Version 2.3"
@Prev "Version 2.1"
@Toc "Version history"
Version 2.2
===========
Release date: 12 Jul 94
@{b}*@{ub} If the listfile was too short (i.e. not enough number of lines in
it), @{b}PicBoot@{ub} would crash.
@{b}*@{ub} Made the detaching code more system friendly. I hope this will
fix the problems a few users have had.
@{b}*@{ub} A few minor bugs fixed + some minor optimizations...
@{b}*@{ub} If the number on the first line in the listfile is 0, then @{b}PicBoot@{ub}
will exit silently. Now why did I add this... >;)
@{b}*@{ub} Improved the random number algorithm.
@{b}*@{ub} Added the @{"DELAY" Link "DELAY"} parameter.
@{b}*@{ub} Added the @{"PATCH" Link "PATCH"} parameter.
@{b}*@{ub} Tweeked the GIF-unpacker a little. Found yet another Macro68
(V3.170) bug while doing that.. :/ (Watch out for bra.l to other
sections/modules when generating code for the 68020+. The branch
target is @{i}not @{ui}correct. :)
@EndNode
@Node "Version 2.3" "PicBoot.guide/Version 2.3"
@Next "Version 2.4"
@Prev "Version 2.2"
@Toc "Version history"
Version 2.3
===========
Release date: 30 Aug 94
@{b}*@{ub} Rewrote startup code and argument parser in C, for easier
maintainance (and to simplify the implementation of some of the
features below).
@{b}*@{ub} You can now also specify a directory (with optional pattern
matching), and @{b}PicBoot@{ub} will randomly select among the files found.
As usual, you can use this feature whereever @{b}PicBoot@{ub} used to
expect a file name.
@{b}*@{ub} If the comment field of a file that @{b}PicBoot@{ub} will read (i.e. a list
file or a picture) starts with the string "*PicBoot*: " (case
sensitive), then the rest of the comment is assumed to be
arguments, to be parsed like they had been found in a list file.
@{b}*@{ub} @{b}UnpackILBM@{ub} will not delete the temp file if it couldn't be
renamed to the original.
@{b}*@{ub} Removed a piece of debug code in the @{b}OpenScreen()@{ub} patch (it
flashed the screen). Harmless, but annoying.. :)
@EndNode
@Node "Version 2.4" "PicBoot.guide/Version 2.4"
@Next "Version 2.5"
@Prev "Version 2.3"
@Toc "Version history"
Version 2.4
===========
Release date: 11 Oct 94
@{b}*@{ub} Added the arguments @{"FADEIN" Link "FADEIN"}, @{"FADEOUT" Link "FADEOUT"} and @{"FADEWB" Link "FADEWB"}, to make various
color fades when the screen is opened/closed.
@{b}*@{ub} Modified the random routines again (changed the seed source). I
hope it works better now.. :)
@{b}*@{ub} If @{"DETACH" Link "DETACH"} was used and a relative filename was used, then the file
wasn't found (except in some cases).
@{b}*@{ub} Using @{"PATCH" Link "PATCH"} in combination with @{"DELAY" Link "DELAY"} on pre-OS 3.0 systems
caused a "Not enough memory" message to be printed, and the picture
wasn't showed (the argument should silently be ignored).
@{b}*@{ub} Some error messages lacked a final linefeed char (an autodoc was
a bit misleading.. :).
@{b}*@{ub} The @{"DELAY" Link "DELAY"} was incorrectly interpreted as seconds, and not as
ticks.
@{b}*@{ub} Closing the picture before a @{"DELAY" Link "DELAY"} timeout had expired caused a
crash.
@EndNode
@Node "Version 2.5" "PicBoot.guide/Version 2.5"
@Next "Version 2.6"
@Prev "Version 2.4"
@Toc "Version history"
Version 2.5
===========
Release date: 13 Oct 94
The @{b}Workbench@{ub} screen wasn't "unlocked" in some cases (when either
@{"FADEWB" Link "FADEWB"} or @{"ACTIVATEWB" Link "ACTIVATEWB"} had been used).
@EndNode
@Node "Version 2.6" "PicBoot.guide/Version 2.6"
@Prev "Version 2.5"
@Toc "Version history"
Version 2.6
===========
Release date: 30 Nov 94
@{b}*@{ub} Added @{"RTG" Link "RTG"} switch, which will make @{b}PicBoot@{ub} attempt to be more
compatible with various "Intuition emulators" for gfx-cards. Don't
use this switch if you don't need to; it will cause the screen to
be opened before the rendering (possibly making it slower).
Also added @{"WRITEPIXELLINE" Link "WRITEPIXELLINE"}, which may improve the speed of the GIF
reader sometimes, when using the @{"RTG" Link "RTG"}-mode.
Thanks go to Roger Westerlund, who made me actually try to make
@{b}PicBoot@{ub} @{"RTG" Link "RTG"} friendly, and also did all the needed testing (I don't
have any gfx-card :/).
@{b}*@{ub} Changed the screenmode id "validator". Needed for better @{"RTG" Link "RTG"}
compatibility.
@{b}*@{ub} Some fade related code was a bit broken, causing problems with
e.g. HAM-pictures.
@{b}*@{ub} @{b}UnpackILBM@{ub} is now able to decompress via a temporary file if
the file and the current directory are on different volumes. Also
improved some error reporting.
@{b}*@{ub} @{b}GetModeID@{ub} now filters out some useless modes (the dual payfield
(DPF) ones). Also, the @{b}ReqTools@{ub} screen mode requester didn't show
"non standard" modes (such as HAM and EHB).
@EndNode